package com.liuqi.aiagent.transfer.mapstruct;

import com.liuqi.aiagent.transfer.dto.VariableEditDto;
import com.liuqi.aiagent.transfer.dto.VariableSaveDto;
import com.liuqi.aiagent.transfer.entity.Variable;
import com.liuqi.aiagent.transfer.vo.VariableVo;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liuqi
 * @date 2025/7/15
 **/
@Mapper
public interface VariableMapStruct {
    VariableMapStruct INSTANCE = Mappers.getMapper(VariableMapStruct.class);

    List<VariableVo> toVos(List<Variable> variables);

    Variable from(VariableSaveDto variableSaveDto);

    Variable from(VariableEditDto variableEditDto);
}
